#include <iostream>
using std::cout;
using std::endl;
//匿名空间中嵌套有名空间
namespace 
{
int num = 100;

void print(){
    cout << "::print()" << endl;
}

namespace wd
{
int num = 200;

void print(){
    cout << "wd::print()" << endl;
}
}
}

void test0(){
    cout << "匿名空间中的num：" << num << endl;
    print();
    cout << "wd中的num：" << ::wd::num << endl;
    wd::print();
}

int main(void){
    test0();
    return 0;
}
